<template>
  <Table stripe
         :loading="loading"
         :showHeader=false
         border
         :columns="listcolumns"
         :data="listauth"
         ></Table>
</template>
 
<script>
// import expandRow from './authtable_expand.vue';
import TreetableExpand from './treetable_expand';
export default {
    props: ['row', 'listcolumns'],
    data () {
        return {
            loading: false,
            // listcolumns: [
            //     // listcolumns暂不展示
            // ],
            listauth: []
        };
    },
    components: {
        TreetableExpand
    },
    mounted () {

    },
    methods: {

    },
    created () {
    // console.log("authotable_expend created: " + JSON.stringify(this.row.children))
        var object = this.row.children;
        // console.log('auth expand data:' + JSON.stringify(object));
        this.listauth.splice(0);
        object.forEach(r => {
            this.listauth.push(r);
        });
    // console.log("listauth:" + JSON.stringify(this.listauth))
    }
};
</script>
 
<style lang="less">
td.ivu-table-expanded-cell {
  padding: 0;
}
</style>
